﻿using System;

namespace Edge.Business.Entities
{
    [Serializable]
    public class BaseEntity<T> : IEntity
    {
        private T id;

        public virtual T Id
        {
            get { return id; }
            set { id = value; }
        }

        #region IEntity Members

        public object GetId()
        {
            return Id;
        }


        public Type GetIdType()
        {
            return typeof(T);
        }

        #endregion
    }
}